import request from '@/utils/request'
const serviceName = 'Device'
//  列表
export function queryDeviceTasks(data) {
  return request({
    url: serviceName + '/DeviceTask/QueryDeviceTasks',
    method: 'post',
    data
  })
}
//  详情
export function getDeviceTask(data) {
  return request({
    url: serviceName + '/DeviceTask/GetDeviceTask',
    method: 'post',
    data
  })
}
//  新增 修改
export function saveDeviceTask(data) {
  return request({
    url: serviceName + '/DeviceTask/SaveDeviceTask',
    method: 'post',
    data
  })
}
//  删除
export function deleteDeviceTasks(data) {
  return request({
    url: serviceName + '/DeviceTask/DeleteDeviceTasks',
    method: 'post',
    data
  })
}

export default {
  queryDeviceTasks,
  getDeviceTask,
  saveDeviceTask,
  deleteDeviceTasks
}
